package com.hfy.model.vo.post;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hfy.model.po.user.post.PostImagesPo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostDetailVo {
    private Integer id;
    private String avatar;
    private String nickname;
    private String account;
    private Boolean isNameless;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy年MM月dd日 HH:mm")
    private LocalDateTime createTime;
    private Integer topicId;
    private String topicTitle;
    private String content;
    private String contentText;
    private Integer wordNum;
    private Integer likeNum;
    private Integer commentNum;
    private Integer collectNum;
    private Integer shareNum;
    private Boolean isLiked;
    private Boolean isCollected;
    private List<PostImagesPo> images;
} 